import gui.HealthDisplay;
import gui.PongGui;
import java.awt.BorderLayout;
import javax.swing.JFrame;

public class Pong extends JFrame {

    public Pong() {
        setLayout(new BorderLayout());
        PongGui game = new PongGui();
        HealthDisplay hd = new HealthDisplay(game.getMaximumHealth());
        game.setHd(hd);
        add(game, BorderLayout.CENTER);
        add(hd, BorderLayout.SOUTH);
        //add(new HealthDisplay());
        setTitle("BowMan with Blackjack and Hookers");
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setSize(480, 340);
        setLocationRelativeTo(null);
        setVisible(true);
        setResizable(false);
    }
    public static void main(String[] args) {
        new Pong();
    }
}